// @ts-ignore
/* eslint-disable */
import request from "@/request";

/** 提交巡寝评价 POST /api/DormitoryInspectionRecord/addPatrolClass */
export async function addDormitoryInspectionUsingPost(
  body: API.DormitoryInspectionRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseLong_>(
    "/api/DormitoryInspectionRecord/addPatrolClass",
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 分析巡寝数据 POST /api/DormitoryInspectionRecord/analyzeInspectionData */
export async function analyzeInspectionDataUsingPost(
  body: API.DormitoryInspectionStatsRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseString_>(
    "/api/DormitoryInspectionRecord/analyzeInspectionData",
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 创建巡寝任务 POST /api/DormitoryInspectionRecord/createDormitoryTask */
export async function createDormitoryTaskUsingPost(
  body: API.DormitoryInspectionEvaluationRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseLong_>(
    "/api/DormitoryInspectionRecord/createDormitoryTask",
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 获取巡寝统计数据 GET /api/DormitoryInspectionRecord/getInspectionStatistics */
export async function getInspectionStatisticsUsingGet(options?: {
  [key: string]: any;
}) {
  return request<API.BaseResponseMapStringObject_>(
    "/api/DormitoryInspectionRecord/getInspectionStatistics",
    {
      method: "GET",
      ...(options || {}),
    }
  );
}

/** 查询巡寝历史记录(分页) POST /api/DormitoryInspectionRecord/myRecords */
export async function getMyDormitoryRecordsUsingPost(
  body: API.DormitoryInspectionPageRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageDormitoryInspectionRecordVO_>(
    "/api/DormitoryInspectionRecord/myRecords",
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}
